package com.seeyon.apps.kkSample.manager;

import com.seeyon.cap4.form.bean.FormBean;
import com.seeyon.cap4.form.bean.FormDataMasterBean;

import java.util.Map;

public interface KKEsignManager {

    /**
     * e签宝 - 发起签署
     *
     * @param formBean
     * @param formDataMasterBean
     * @return
     */
    public Map<String, Object> doSignature(FormBean formBean, FormDataMasterBean formDataMasterBean);

    /**
     * 获取应用配置信息
     *
     * @return
     */
    public Map getUnComplyInfo();

    /**
     * 下载A8附件并上传到e签宝
     *
     * @param subReference 表单次数据id
     * @param headerParams 请求头参数
     * @param appUrl       e签宝集成地址
     * @return
     */
    public Map<String, Object> uploadFile(Long subReference, Map<String, Object> headerParams, String appUrl);

    /**
     * 获取token
     *
     * @param appUrl
     * @param appId
     * @param secret
     * @return
     */
    public String getToken(String appUrl, String appId, String secret);
}
